package com.kuang.lesson01;

import java.awt.Button;
import java.awt.Frame;
import java.awt.GridLayout;

public class TestGridLayout {
	public static void main(String args[])
	{
		Frame frame = new Frame("TestGridLayout");
		
		Button btn1 = new Button("btn1");
		Button btn2 = new Button("btn2");
		Button btn3 = new Button("btn3");
		Button btn4 = new Button("btn4");
		Button btn5 = new Button("btn5");
		
		frame.setLayout(new GridLayout(3, 2, 5, 5));
		frame.add(btn1);
		frame.add(btn2);
		frame.add(btn3);
		frame.add(btn4);
		frame.add(btn5);
		
		frame.pack();
		frame.setVisible(true);
	}

}
